package com.cdn.clock.anno;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * 蔡定努
 * 2024/06/05 22:04
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CRateLimit {

    String[] key() default {};

    long count() default 1L;

    long rateInterval() default 1;

    TimeUnit timeUnit() default TimeUnit.SECONDS;


    String tipMsg() default "操作太频繁，请稍后重试";


}
